package com.shop.po;

public class Shopcart {
	private int id;		//购物车id
	private int uid;	//关联用户id
	private int pid;	//关联商品id
	private int count;	//数量
	private double subtotle;	//单个商品总价
	private String pimage;	//商品图片
	private String pname;	//商品名
	private double pprice;	//商品单价
	private Product product;	
	
	public Product getProduct() {
		return product;
	}
	public void setProduct(Product product) {
		this.product = product;
	}
	public String getPimage() {
		return pimage;
	}
	public void setPimage(String pimage) {
		this.pimage = pimage;
	}
	public String getPname() {
		return pname;
	}
	public void setPname(String pname) {
		this.pname = pname;
	}
	public double getPprice() {
		return pprice;
	}
	public void setPprice(double pprice) {
		this.pprice = pprice;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getUid() {
		return uid;
	}
	public void setUid(int uid) {
		this.uid = uid;
	}
	public int getPid() {
		return pid;
	}
	public void setPid(int pid) {
		this.pid = pid;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public double getSubtotle() {
		return subtotle;
	}
	public void setSubtotle(double d) {
		this.subtotle = d;
	}
	@Override
	public String toString() {
		return "Shopcart [id=" + id + ", uid=" + uid + ", pid=" + pid + ", count=" + count + ", subtotle=" + subtotle
				+ ", pimage=" + pimage + ", pname=" + pname + ", pprice=" + pprice + ", product=" + product + "]";
	}
	
}
